/* Notification Icon Styles */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Pre-order Notification Styles */
.preorder-notification-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.preorder-bell-icon {
    color: #d4af37;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preorder-bell-icon:hover {
    transform: scale(1.1);
    color: #f4d03f;
}

.preorder-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #2c3e50;
}

.preorder-notification-badge.hidden {
    display: none;
}

.notification-icon {
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notification-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.notification-badge {
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notification-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-badge.hidden {
    display: none;
}

/* Notifications Panel Styles */
.notifications-panel {
    /* unified modal aesthetic */
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

    /* positioning and sizing */
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: 400px;

    /* visual effects */
    backdrop-filter: blur(10px);

    /* visibility and stacking */
    display: none;
    z-index: 9999;
    overflow: hidden;
    will-change: opacity, transform;
}

.notifications-panel.active {
    display: block;
    animation: fadeIn 0.25s ease, slideDown 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    background: linear-gradient(135deg, #2c1810, #1a0f0a);
    color: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.close-notifications {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.close-notifications:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg);
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 12px 16px;
}
/* custom scrollbar to match modal aesthetics */
.notifications-list::-webkit-scrollbar {
    width: 8px;
}
.notifications-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.6);
    border-radius: 10px;
}
.notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 0, 0, 0.8);
}
.empty-notifications {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-notifications p {
    margin: 0;
    font-size: 14px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #8B0000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}
.notification-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-title {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.notification-message {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}
/* Mark as Read button */
.notification-item .mark-read-btn {
    margin-top: 10px;
}

.mark-read-btn {
    background: linear-gradient(135deg, #540000, #8B0000);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mark-read-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.35);
    filter: brightness(1.05);
}
.mark-read-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
}